<?php
/* @var $this AturanController */
/* @var $model Aturan */

/*$this->breadcrumbs=array(
	'Aturans'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Aturan', 'url'=>array('index')),
	array('label'=>'Create Aturan', 'url'=>array('create')),
	array('label'=>'Update Aturan', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Aturan', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Aturan', 'url'=>array('admin')),
);*/
?>

<div class="judul2" style="padding:3px 15px">
   ATURAN KELOMPOK
</div>
<div>
    <div style="border-bottom: 1px dotted black;height:auto">
        <div valign="top" style="padding-top:10px;padding:0px 15px;">
            <div style="position: relative;padding-top: 10px;">
                <div style="position:absolute;right:25px;top:0px"><a href="<?=url('aturan/index')?>"><img
                        src="<?=bu();?>/img/back-icon.png" border="0" alt="back" title="back" style="cursor: pointer;"/></a>
                </div>
                <div class="judul_news"><?=ucwords($model->nama)?></div>
                <div class="content_2 content isi" style="padding-top:10px;">
                    <?php echo $model->isi?>
                </div>
            </div>
        </div>
    </div>
</div>
<div style="padding:3px 15px;width:500px">
    <?php foreach ($model_list as $modelib): ?>

    <div style="position: relative;padding-top: 10px;"><?

        $isi1 = '';

        $tgl = sql2date($modelib['tgl_create'], 'd MMMM yyyy');
        $jawab = '';
        if ($modelib['jawaban'] <> null) {
            $jawab = '<div style="background:#f1f9fd;padding:5px;"><span >Admin :</span><br/>' . $modelib['jawaban'] .
                '</div>';
        } else $jawab = "";
        $isi1 .= '<tr style="background:#fff;padding: 5px;">' .
            '<td valign="top" align="left" class="fontcolorbiru0b5fa5 font12 fontfamcalibry" style="padding: 5px;"><b>' .
            Ucwords($modelib['nama']) . '</b> : <span style="italic fontcolorbiru font10 fontfamcalibry">' . $tgl .
            '</span><br/><span style="fontcolorbiru font10 fontfamcalibry italic">' . $modelib['email'] .
            '</span><br/>' . $modelib['komentar'] . '<br/>' . $jawab . '</td>' . '</tr>';

        echo $isi1;
        ?>
    </div>



    <?php endforeach; ?>

    <div style="position:relative;">
        <?php $this->widget('CLinkPager', array(
        'pages' => $pages,
        'cssFile' => bu() . '/css/pager.css',)) ?>
    </div>
</div>
